home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / qram.zip / QRAM.TEC
Text File  |  1991-12-11  |  15KB  |  312 lines

  1. ID:QR  QRAM 
  2. Quarterdeck Technical Note #216
  3. By:  Michael Bolton
  4.  
  5. QRAM
  6. ====
  7.  
  8. What is QRAM?
  9. Does QRAM turn exTENded memory into exPANded memory?
  10. What do I need to run QRAM?
  11. What can QRAM do for my system?
  12.  
  13. What is QRAM?
  14. =============
  15.  
  16. QRAM is a suite of memory management utilities which add power to 80286,
  17. 8086, and 8088 PCs and compatibles in some of the same ways that
  18. QEMM-386 adds power to 386 PCs, allowing you to liberate more of the
  19. precious memory below 640K.
  20.  
  21.     QRAM, on machines with appropriate memory management hardware --
  22.      Chips and Technologies Shadow RAM, or EMS 4.0 hardware AND
  23.      software, creates High RAM -- RAM placed at unused addresses
  24.      between 640K and 1MB.  This allows you to load Terminate-and-Stay-
  25.      Resident programs (TSRs), device drivers, network drivers, DOS
  26.      resources (such as BUFFERS, FILES, FCBS, and drive specifiers)
  27.      and the like into High RAM -- RAM placed at unused addresses
  28.      between 640K and 1MB.
  29.  
  30.     The VIDRAM program which comes as part of the QRAM package
  31.      allows you to "steal" a portion of memory from your EGA or VGA
  32.      video card and assign that memory to DOS, further increasing the
  33.      amount of conventional memory available to you when you are running
  34.      a program that does not need EGA or VGA graphics.
  35.  
  36.     QEXT.SYS, an XMS driver, provides access to extended memory,
  37.      and to the HMA -- 64K of extra DOS memory for applications
  38.      that know how to use this specification.  
  39.  
  40.     The BUFFERS and FILES programs allow you to allocate
  41.      additional DOS buffers and file handles on the fly, after your
  42.      machine has booted  -- and to load them into High RAM.
  43.  
  44.     Other utilities for managing memory are included.
  45.  
  46.     Finally, every copy of QRAM also comes with Manifest, the
  47.      award-winning memory analysis and reporting tool.
  48.  
  49. Most people are interested in QRAM for its abilities to load small DOS
  50. programs, drivers, and resources into High RAM.  However, the
  51. bewildering array of memory management standards associated with the
  52. 8088 and 80286 architectures contributes to several common
  53. misconceptions about what High RAM really is and how it is allocated.
  54. This note will describe the hardware and software requirements for QRAM,
  55. and will explain what you can expect QRAM to do for your system.
  56.  
  57.  
  58. Does QRAM turn exTENded memory into exPANded memory?
  59. =======================================================
  60.  
  61. No.  QRAM DOES NOT turn exTENded memory into exPANded memory.  In fact,
  62. QRAM needs to find either an appropriate Shadow RAM chipset, or some
  63. form of EMS 4.0 exPANded memory hardware with its own EMS 4.0 driver
  64. already present, if QRAM is to load programs high.  (What constitutes
  65. appropriate is described below.)  The 286 chip on its own does not have
  66. the memory management features needed to make memory appear at addresses
  67. where there is none.  The 386 chip has these (and other extremely
  68. sophisticated memory management) features built-in, but the 286 needs
  69. assistance from extra hardware to do this.
  70.  
  71. Several programs, (often called "LIMulators") provide the ability to
  72. store data in exTENded memory in such a way that, to software, the
  73. exTENded memory looks like exPANded memory.  QRAM IS NOT A PROGRAM OF
  74. THIS TYPE.
  75.  
  76. Such programs (which are widely available, and free on many bulletin
  77. board systems) have two important disadvantages.  First, they cannot
  78. create exPANded memory in which programs can be run, so they cannot be
  79. used to load TSRs, device drivers, and network software outside of
  80. conventional memory; nor are such expanded memory emulators useful to
  81. DESQview for multitasking.  Second, in order to provide the EMS page
  82. frame, necessary for the emulation of EMS, they actually cost 64K (for
  83. the EMS page frame), plus the overhead for their own code, all in
  84. conventional memory -- which is an enormous penalty, presuming that your
  85. goal is to liberate as much conventional memory as possible.
  86.  
  87. What do I need to run QRAM?  What can QRAM do for my system?
  88. ============================================================
  89.  
  90. QRAM's features depend on several aspects of the configuration of your
  91. machine, including its memory management hardware and software, and its
  92. video hardware.
  93.  
  94. It is crucially important to understand that, on a 286 without memory
  95. managment hardware, there is NO MEMORY between 640K and 1 MB -- even on
  96. systems with one megabyte or more of memory installed.  (Machines with
  97. Shadow RAM constitute an exception to this; Shadow RAM is described
  98. below.) The extended memory on your system is addressed not only above
  99. 640K, but above the 1MB line -- and is therefore outside of DOS's
  100. address space. Extended memory is not useful to QRAM, nor is it useful
  101. to any regular DOS program except as a place to store data. Only DOS
  102. programs which have been specifically written to access extended memory
  103. will be able to take advantage of it.
  104.  
  105.  
  106. Machines with Shadow RAM 
  107. =========================
  108.  
  109. Shadow RAM is a way to increase the system's speed.  System and video
  110. BIOS (Basic Input/Output Services) ROMs are addressed 8 bits at a time,
  111. and therefore are typically slower than 16- or 32-bit RAM.  ROM
  112. shadowing is accomplished by setting up a 384K region of memory
  113. somewhere on the system, giving it addresses from 640K to 1MB, and
  114. copying the code from system and video ROMs into this region.  So far as
  115. the processor is concerned, the ROMs are still at their usual addresses,
  116. but since the ROM code is in faster RAM, performance is improved.
  117. Typical systems use 32K of ROM for video, and 64K or less of ROM for the
  118. system BIOS.  Thus, most of this 384K region of memory, set aside for
  119. ROM shadowing, is unused.
  120.  
  121.  
  122. QRAM's LOADHI Features
  123. ======================
  124.  
  125. In order for QRAM to activate its LOADHI capabilites, it must find at
  126. least one of the following things on your machine:
  127.  
  128. 1) The Chips & Technologies NEAT, SCAT, PEAK, LEAP, or 386 Shadow RAM
  129.    chipsets; as described above, these chipsets have the ability to make
  130.    actual memory appear at addresses between 640K and 1MB when Shadow
  131.    RAM is enabled.  Machines that are equipped with these chipsets may
  132.    display the words "NEAT", "SCAT", "PEAK" or "LEAP" at some time
  133.    during the boot process.  Note that since Shadow RAM is implemented
  134.    in hardware on these types of systems, you do not need to have any
  135.    sort of software driver installed for QRAM to take advantage of your
  136.    system's Shadow RAM.  It may be necessary for you to activate the
  137.    ShadowRAM in the CMOS setup, however; QRAM cannot do this.
  138.  
  139.  
  140. 2) An EEMS (two "E"s) or EMS 4.0 board with a software driver that
  141.    provides mappable EMS pages between 640K and 1MB in addition to the
  142.    EMS page frame.  The software driver is installed in CONFIG.SYS, and
  143.    typically has the letters "EMM" somewhere in its filename.  The EMS
  144.    driver must not only be able to provide exPANded memory; it must also
  145.    be capable of creating more than four mappable pages between 640K and
  146.    1MB, as the first four mappable pages are reserved for the EMS Page
  147.    Frame.  A very few computers come with this sort of memory management
  148.    hardware already installed.
  149.  
  150.  
  151. 3) A 286 memory management unit, such as the All ChargeCard or the SOTA
  152.    Pop Card.  Though not a complete implementation of the 386
  153.    architecture, these add-on devices provide memory management most
  154.    similar to that offered by the 386 architecture.
  155.  
  156. Note that items 2 and 3 involve some sort of add-on hardware, and that
  157. software alone WILL NOT provide the hardware assist that the 286 or
  158. lesser processors need for QRAM to create High RAM.
  159.  
  160. Manifest's Expanded / Pages screen will tell you if your hardware and
  161. driver is currently providing mappable pages, as can the QTEST program
  162. described below.  Manifest's exPANded pages screen will look something like
  163. this:
  164.  
  165. 0n00 UUUU
  166. 1n00 UUUU
  167. 2n00 UUUU
  168. 3n00 UUUU
  169. 4n00 UUUU
  170. 5n00 UUUU
  171. 6n00 UUUU
  172. 7n00 UUUU
  173. 8n00 UUUU
  174. 9n00 UUUU
  175. An00 UUUU    <-
  176. Bn00 ++UU    <-   Plus signs (+) anywhere in this
  177. Cn00 UUFF    <-   range mean that QRAM can create
  178. Dn00 FF++    <-   High RAM -- 16K for each +
  179. En00 ++++    <-
  180. Fn00 UUUU
  181.  
  182. Note that this map tells you what is being currently provided.  Your
  183. hardware and software may be capable of creating more mappable pages;
  184. consult the documentation for your board.  Some switch or jumper
  185. settings, or some command-line parameters on your board's device driver
  186. may be able to provide you with more mappable pages.
  187.  
  188. If you have an EMS board that provides only four mappable pages, pages
  189. that are reserved for the Page Frame, and designated above by the letter
  190. "F", you may choose to disable your use of exPANded memory in exchange
  191. for the 64K of High RAM that QRAM may be able to provide.  This will
  192. liberate more memory below 640K, but will curtail your access to
  193. exPANded memory.
  194.  
  195. A further complication results from the fact that when IBM introduced
  196. the PC-AT, the addresses from E000-EFFF were reserved for an expansion
  197. of the system ROM.  However, the system ROM was not expanded until the
  198. advent of the PS/2.  Unfortunately, the address space from E000-EFFF
  199. remained unusable for any other purpose, and to retain 100%
  200. compatibility with IBM, almost all clone makers followed the PC-AT's
  201. example.  There were very few manufacturers who were confident enough to
  202. break this convention, and therefore the E000-EFFF range may not be
  203. available on your machine.  Since many computers render the E region
  204. unusable for High RAM or EMS, many expanded memory boards also refrain
  205. from allowing High RAM to be mapped into the E region.  Your hardware
  206. may permit you to do this.
  207.  
  208.  
  209. VIDRAM
  210. ======
  211.  
  212. If you use a VGA or EGA display adapter, the VIDRAM program in the QRAM
  213. package allows you to gain up to 96K of extra conventional memory, at
  214. the cost of temporarily disabling EGA or VGA graphics. This is most
  215. useful if you are running text-based programs (such as most popular
  216. spreadsheets, databases, and word processors).  The trade-off here is
  217. that you give up the ability to use graphics while VIDRAM is activated,
  218. but it can be toggled on and off with ease from the DOS prompt.
  219.  
  220.  
  221. QEXT.SYS
  222. ========
  223.  
  224. QEXT is a driver that allows Quarterdeck's DESQview to load 64K of
  225. itself into the first 64K of extended memory.  QEXT is also an XMS
  226. driver; that is, it manages extended memory in accordance with the HMA
  227. and EMB aspects of the XMS specification to programs that know how to
  228. use it.  Extended memory disk caches and network drivers are often
  229. capable of using XMS memory, as are Microsoft Windows 3.0. and other
  230. applications.  If you are currently using HIMEM.SYS, using QEXT instead
  231. can help to increase the amount of conventional memory on your machine,
  232. since QEXT can be loaded high by QRAM's LOADHI features.  QEXT requires
  233. extended memory to be installed on your machine, and to put it to use,
  234. you must have DESQview or applications that use the XMS specification.
  235.  
  236.  
  237. The DOS Resource Programs
  238. =========================
  239.  
  240. In DOS versions 2 and 3, each disk buffer in CONFIG.SYS uses
  241. approximately .5K of conventional memory.  The same is true of DOS 5 if
  242. you have chosen not to use DOS=HIGH.  QRAM's BUFFERS.COM program allows
  243. you to specify a single BUFFER in CONFIG.SYS, and specify more buffers
  244. later, in AUTOEXEC.BAT.  The benefit here is that these buffers, added
  245. by BUFFERS.COM after CONFIG.SYS has run its course, may be loaded into
  246. the High RAM that QRAM creates, resulting in substantial savings in
  247. conventional memory.
  248.  
  249. Unlike DOS 2 and 3, BUFFERS are "brittle" in DOS 5.  Only the last group
  250. of BUFFERS loaded is used, with the preceding going to waste.
  251.  
  252. Due to the unusual structure of DOS buffers in DOS 4, BUFFERS.COM cannot
  253. be used at all with DOS 4.
  254.  
  255. Users of large databases, or those in network environments, will
  256. appreciate the QEMM FILES program, which allows you to add extra file
  257. handles in AUTOEXEC.BAT or at the DOS prompt.  Again, FILES can be
  258. loaded into High RAM, resulting in more conventional memory
  259. conservation. FCBS and LASTDRIVE can also be handled in a similar way.
  260.  
  261.  
  262. MANIFEST
  263. ========
  264.  
  265. The award-winning Manifest program, included with every copy of QRAM,
  266. works on any IBM-compatible PC.  Manifest will tell you how your system
  267. is configured and how your applications are using memory, and will even
  268. give you hints on how to improve your configuration.  Manifest's clear
  269. and comprehensive manual will explain many things about memory,
  270. including the varying specifications for memory use and how they work.
  271.  
  272.  
  273. How can I tell how useful QRAM will be on MY system?
  274. ====================================================
  275.  
  276. Many users have never had to consider the difference between exTENded
  277. and exPANded memory, and are unlikely to have determined the number of
  278. mappable pages that their EMS hardware and software can provide between
  279. 640K and 1024K.  To help with this process, Quarterdeck has provided a
  280. mini-analysis program called QTEST.  QTEST will examine your system and
  281. will describe the extent of the benefits that QRAM can provide.  QTEST
  282. is available free from the Quarterdeck BBS (310-314-3227; 2400 and 9600
  283. bps modem operation is supported).  QTEST can also be found on
  284. Compuserve and on many BBSs; on some BBSs, it may be found in compressed
  285. files along with the Quarterdeck White Papers.
  286.  
  287. The Quarterdeck White Papers (of which this document is one example)
  288. comprise technical notes, product information, and a QWHITE.COM, a
  289. DESQview-specific file reader which can, when run under DESQview, search
  290. White Papers for information, display, and print the technical notes for
  291. you.  You don't need DESQview to get benefits from the White Papers. 
  292. The notes therein can be read with any text editor, word processor, or
  293. file reader that can display ASCII text.  Many of these notes will help
  294. to explain WHY DESQview is so beneficial, though!  The White Papers also
  295. contain files which explain various issues related to QRAM, and to
  296. memory management in general; you may find these quite helpful.
  297.  
  298.  
  299. Summary
  300. =======
  301.  
  302. In short, the QRAM package is valuable for anyone who wants to get the
  303. most out of an 80286, 8086, or 8088 machine, especially those with EMS
  304. 4.0 exPANded memory hardware or Chips & Technologies ShadowRAM
  305. installed.  If its system requirements are fulfilled, you will find that
  306. QRAM can substantially increase the amount of your precious conventional
  307. memory.
  308.  
  309.  
  310.            Copyright (C) 1991 by Quarterdeck Office Systems 
  311.                 * * *   E N D   O F   F I L E * * *
  312.